<template>
    <div>
        <el-form ref="form" :model="form" label-width="80px">
            <el-form-item label="菜单组件">
                <el-input v-model="form.assembly"></el-input>
            </el-form-item>
            <el-form-item label="父id">
                <el-input v-model="form.id"></el-input>
            </el-form-item>
            <el-form-item label="菜单名称">
                <el-input v-model="form.menusname"></el-input>
            </el-form-item>
            <el-form-item label="菜单等级">
                <el-input v-model="form.level"></el-input>
            </el-form-item>
            <el-form-item label="菜单图标">
                <el-input v-model="form.icon"></el-input>
            </el-form-item>
            <el-form-item label="菜单路径">
                <el-input v-model="form.path"></el-input>
            </el-form-item>
            <el-form-item label="排序字段">
                <el-input v-model="form.sort"></el-input>
            </el-form-item>
        </el-form>
    </div>
</template>
<script>
export default {
    data() {
        return {
            form: {}
        }
    },
    props: ['formObj'],
    mounted() {
        this.form = this.formObj
    },
    watch:{
        formObj(val){
            this.form = val
        }
    }
}
</script>